class Bank {
  Bank({
    this.id,
    this.name,
    this.shortName,
    this.logoUrl,
  });

  factory Bank.fromJson(Map<String, dynamic> json) {
    return Bank(
      id: json['id']?.toString(),
      name: json['name']?.toString(),
      shortName: json['shortName']?.toString(),
      logoUrl: json['logoUrl']?.toString(),
    );
  }

  String? id;
  String? name;
  String? shortName;
  String? logoUrl;

  Map<String, dynamic> toJson() {
    return {
      'id': id,
      'name': name,
      'shortName': shortName,
      'logoUrl': logoUrl,
    };
  }

  Bank clone() {
    return Bank(
      id: id,
      name: name,
      shortName: shortName,
      logoUrl: logoUrl,
    );
  }
}
